4D Chart v13CT Get ID |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Chart v13
CT Get ID
|
CT Get ID ( area ; scope ; index ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D Chart area | |||||
scope | Longint |
![]() |
Scope of the function -1 = All 0 = Selected objects >0 = Group ID | |||||
index | Longint |
![]() |
Number of object in scope | |||||
Function result | Longint |
![]() |
The object's unique Object ID | |||||
CT Get ID returns the unique ID for the object in area described by scope and index. This number is used by many other 4D Chart commands and is referred to as an object’s ID.
To get an object’s ID, you first specify which set of objects to refer to and then the order of the object within the set. Objects are ordered from back to front. The backmost object has an index of 1.
This example shows how to extract the ID for a selected object.
vID:=CT Get ID(Area;0;1) `Get the ID of the first selected object
Product: 4D Chart
Theme: CT Objects
Number:
14563
Created: 4D Chart 1